package com.xd.center.http.authentication;

import com.xd.center.http.builder.MethodMetadata;
import com.xd.center.http.proxy.HttpProxy;

import java.util.Map;

public interface HttpAuth {
  String URL = "url";
  String AUTH_URL = "auth.url";
  //用户名密码
  String AUTH_USER_NAME = "auth.user-name";
  String AUTH_PASSWORD = "auth.password";
  //oauth
  String AUTH_BASIC = "auth.basic";
  String AUTH_TIMEOUT = "auth.timeout";
  String Basic = "Basic ";
  String Authorization = "Authorization";
  //smartApi
  String AUTH_KEY = "auth.key";

  void auth(MethodMetadata methodMetadata, HttpProxy httpProxy, Map<String, String> headers, boolean resetAuth);
}
